package flst.ipiweb.exceptions;

public class IPIWebException extends Exception {

	private String messageErreur;
	private Exception exception;

	public IPIWebException(String messageErreur, Exception e) {
		super();
		this.messageErreur = messageErreur;
		this.exception = e;
	}

	public String getMessageErreur() {
		return messageErreur;
	}

	public void setMessageErreur(String messageErreur) {
		this.messageErreur = messageErreur;
	}

	public Exception getException() {
		return exception;
	}

	public void setException(Exception exception) {
		this.exception = exception;
	}
	
	@Override
	public String getMessage() {
		String str = this.getMessageErreur() + " - " + this.getMessage();
		
		return str;
	}

}